package com.drive.room.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

@Controller
//@RequestMapping("/query")
public class LoginController {

    /**
    @RequestMapping(value = "login")
    public ModelAndView login(HttpServletRequest request, Model model) {
        return new ModelAndView("login");
    }
    **/
    @RequestMapping(value = "/login")
    public String login(HttpServletRequest request, Model model) {
        return "index";
    }

    @RequestMapping(value = "/home")
    public String home(HttpServletRequest request, Model model) {
        return "home";
    }

    @RequestMapping(value = "/report")
    public String report(HttpServletRequest request, Model model) {
        return "report";
    }
}
